package com.company.common.server.constant;

import com.company.cloud.common.constant.BaseCodeEnum;

public class CloudConstant {


	
	/**分销计算模型*/
	public enum DisCalModel implements BaseCodeEnum{
		Cal_FixedVal("1","固定值计算"),
		Cal_Ratio("2","比率计算"),
		;
		private String code;
		private String msg;
		DisCalModel(String code, String msg) {
			this.code = code;
			this.msg = msg;
		}
		@Override
		public String getCode() {return code;}
		@Override
		public String getMsg() {return msg;}
	}
	
	
	/**商品分销设置分类*/
	public enum ProductDisProfitTypeEnum implements BaseCodeEnum{
		PDPT_System("0","跟随总设置"),
		PDPT_Custom("1","自定义分润规则"),
		;
		private String code;
		private String msg;
		ProductDisProfitTypeEnum(String code,String msg) {
			this.code=code;
			this.msg=msg;
		}
		@Override
		public String getCode() {
			return code;
		}
		@Override
		public String getMsg() {
			return msg;
		}
	}


	/**实体操作方式*/
	public enum EntityOpWayEnum implements BaseCodeEnum {
		ENTITY_DEL("del","删除"),
		ENTITY_ADD("add","新增"),
		ENTITY_EDIT("edit","修改"),
		ENTITY_UP("up","上架"),
		ENTITY_DOWN("down","下架"),
		;
		private String code;
		private String msg;
		EntityOpWayEnum(String code, String msg) {
			this.code = code;
			this.msg = msg;
		}
		@Override
		public String getCode() {return code;}
		@Override
		public String getMsg() {return msg;}
	}





}
